 * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        }
        :root {
            --primary: #2a4eb0;
            --primary-dark: #1f3a8a;
            --primary-light: #eef3ff;
            --secondary: #7b3fe0;
            --success: #0e7b4c;
            --warning: #b45b0f;
            --danger: #c72a2a;
            --dark: #1e293b;
            --gray: #64748b;
            --light: #f8fafc;
            --border-radius: 20px;
        }
        body {
            background: linear-gradient(140deg, #e7edfd, #f3f7ff);
            min-height: 100vh;
            padding: 24px;
        }
        .glass-container {
            max-width: 1500px;
            margin: 0 auto;
            background: rgba(255,255,255,0.7);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border-radius: 40px;
            padding: 28px 30px;
            box-shadow: 0 20px 50px -15px #1e2b4f40;
            border: 1px solid #ffffff80;
        }
        header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            margin-bottom: 28px;
            background: linear-gradient(115deg, #ffffffb0, #ffffff70);
            padding: 20px 30px;
            border-radius: 50px;
            border: 1px solid white;
        }
        h1 {
            font-size: 2.4rem;
            font-weight: 700;
            background: linear-gradient(145deg, #1b2f5e, #3d3f8c);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            display: flex;
            align-items: center;
            gap: 12px;
        }
        .badge {
            background: #2b3d70;
            color: white;
            padding: 8px 22px;
            border-radius: 60px;
            font-weight: 500;
            font-size: 0.9rem;
            box-shadow: 0 4px 8px #0002;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .toolbar {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            background: #f1f5fb;
            padding: 8px;
            border-radius: 60px;
            margin-bottom: 32px;
            border: 1px solid #ccdaf0;
        }
        .tool-btn {
            background: transparent;
            border: none;
            padding: 12px 28px;
            border-radius: 50px;
            font-weight: 600;
            font-size: 1rem;
            cursor: pointer;
            transition: 0.2s;
            color: #2d3f64;
            display: flex;
            align-items: center;
            gap: 12px;
        }
        .tool-btn i { font-size: 1.2rem; }
        .tool-btn.active {
            background: white;
            box-shadow: 0 6px 14px #0001;
            color: var(--primary);
            border: 1px solid #fff;
        }
        .tool-btn:hover:not(.active) { background: #ffffffc0; }
        .tool-panel {
            display: none;
            background: #ffffffd6;
            border-radius: 38px;
            padding: 32px 30px;
            border: 1px solid white;
            margin-top: 8px;
        }
        .tool-panel.active { display: block; }
        .upload-zone {
            border: 3px dashed var(--primary);
            background: #f5f9ff;
            border-radius: 36px;
            padding: 50px 30px;
            text-align: center;
            transition: 0.2s;
            cursor: pointer;
            margin-bottom: 25px;
        }
        .upload-zone:hover { background: #e0edff; }
        .upload-icon { font-size: 4rem; color: var(--primary); margin-bottom: 15px; }
        .file-info-box {
            background: white;
            border-radius: 30px;
            padding: 20px 25px;
            margin: 25px 0;
            border-left: 8px solid var(--primary);
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            align-items: center;
        }
        .file-name { font-weight: 700; font-size: 1.2rem; word-break: break-word; }
        .file-size { background: #e8ecf5; border-radius: 40px; padding: 8px 20px; }
        .warning-banner {
            background: #fff0d4;
            border-left: 8px solid #f97316;
            border-radius: 20px;
            padding: 15px 25px;
            margin: 20px 0;
            color: #8b5200;
        }
        .error-banner {
            background: #ffe6e6;
            border-left: 8px solid #c72a2a;
            border-radius: 20px;
            padding: 15px 25px;
            margin: 20px 0;
            color: #8b0000;
            display: none;
        }
        .option-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            gap: 16px;
            margin: 25px 0;
        }
        .option-card {
            background: white;
            border-radius: 26px;
            padding: 22px;
            border: 2px solid transparent;
            cursor: pointer;
            box-shadow: 0 5px 12px #00000008;
            transition: 0.15s;
        }
        .option-card.selected {
            border-color: var(--primary);
            background: var(--primary-light);
        }
        .btn-group {
            display: flex;
            gap: 18px;
            flex-wrap: wrap;
            margin: 30px 0 15px;
        }
        .btn {
            padding: 15px 40px;
            border-radius: 60px;
            font-weight: 600;
            border: none;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 12px;
            font-size: 1rem;
            transition: 0.15s;
            background: white;
            color: var(--dark);
            border: 1px solid #ccd5e6;
        }
        .btn-primary {
            background: linear-gradient(145deg, #2a4eb0, #4338ca);
            color: white;
            border: none;
            box-shadow: 0 8px 18px #2a4eb055;
        }
        .btn-primary:not(:disabled):hover { transform: translateY(-3px); box-shadow: 0 12px 24px #2a4eb077; }
        .btn:disabled { opacity: 0.4; cursor: not-allowed; }
        .progress-area {
            background: #f2f7ff;
            border-radius: 50px;
            padding: 25px;
            margin: 25px 0;
            display: none;
        }
        .progress-bar {
            height: 22px;
            background: #dde3ed;
            border-radius: 22px;
            overflow: hidden;
        }
        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #2a4eb0, #7b3fe0);
            width: 0%;
            transition: width 0.4s;
        }
        .result-box {
            background: #e6f7e6;
            border-left: 8px solid #0e7b4c;
            border-radius: 30px;
            padding: 25px;
            margin: 30px 0;
            display: none;
        }
        .download-item {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            align-items: center;
            background: white;
            padding: 18px 25px;
            border-radius: 40px;
            margin-top: 15px;
        }
        .footer-note {
            display: flex;
            justify-content: space-between;
            margin-top: 30px;
            color: #3d4e72;
            font-size: 0.9rem;
        }
        .toast {
            position: fixed;
            bottom: 30px;
            right: 30px;
            background: #1e293b;
            color: white;
            padding: 18px 30px;
            border-radius: 60px;
            box-shadow: 0 15px 30px #0004;
            display: none;
            align-items: center;
            gap: 15px;
            z-index: 999;
        }
        .toast.show { display: flex; animation: slide 0.3s; }
        .download-success-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: #0e7b4c;
            color: white;
            padding: 4px 14px;
            border-radius: 40px;
            font-size: 0.8rem;
            margin-left: 12px;
            opacity: 0;
            transition: 0.2s;
        }
        .download-success-badge.show { opacity: 1; }
        @keyframes slide { from {transform: translateX(100%); opacity:0;} to {transform:translateX(0); opacity:1;} }
        .spinner {
            display: inline-block;
            width: 20px;
            height: 20px;
            border: 3px solid rgba(255,255,255,.3);
            border-radius: 50%;
            border-top-color: #fff;
            animation: spin 1s ease-in-out infinite;
        }
        @keyframes spin { to { transform: rotate(360deg); } }